@extends('layouts.home.home_master')

@section('content')
<!-- <div class="container">
    <div class="row">
        <div class="col-md-8 col-md-offset-2">
            <div class="panel panel-default">
                <div class="panel-heading">登录</div>
                <div class="panel-body">
                    <form class="form-horizontal" role="form" method="POST" action="{{ url('/login') }}">
                        {{ csrf_field() }}

                        <div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}">
                            <label for="email" class="col-md-4 control-label">邮箱</label>

                            <div class="col-md-6">
                                <input id="email" type="email" class="form-control" name="email" value="{{ old('email') }}" required autofocus>

                                @if ($errors->has('email'))
                                    <span class="help-block">
                                        <strong>{{ $errors->first('email') }}</strong>
                                    </span>
                                @endif
                            </div>
                        </div>

                        <div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
                            <label for="password" class="col-md-4 control-label">密码</label>

                            <div class="col-md-6">
                                <input id="password" type="password" class="form-control" name="password" required>

                                @if ($errors->has('password'))
                                    <span class="help-block">
                                        <strong>{{ $errors->first('password') }}</strong>
                                    </span>
                                @endif
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-md-6 col-md-offset-4">
                                <div class="checkbox">
                                    <label>
                                        <input type="checkbox" name="remember"> 记住密码
                                    </label>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-md-8 col-md-offset-4">
                                <button type="submit" class="btn btn-primary">
                                    登录
                                </button>

                                <a class="btn btn-link" href="{{ url('/password/reset') }}">
                                    忘记密码？
                                </a>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div> -->

<section id="main" class="entire_width">
    <div class="container_12">      
       <div id="content">
        <div class="grid_12">
            <h1 class="page_title">登录／注册</h1>
        </div><!-- .grid_12 -->
        
        <div class="grid_6 new_customers">
            <form role="form" method="get" action="{{ url('/register') }}">
                {{ csrf_field() }}
                <h2>新用户</h2>
                <p>注册后可以查看价格，电话下单，等更多功能</p>
                <div class="clear"></div>

                <button class="account">注册账户</button>
            </form>
        </div><!-- .grid_6 -->
        
        <div class="grid_6">
            <form class="registed" role="form" method="POST" action="{{ url('/login') }}">
                {{ csrf_field() }}
                <h2>用户登录</h2>
                            
                <p>如果您还没有帐号请先注册帐号</p>
                            
                <div class="email">
                    <strong>邮箱:</strong><sup class="surely">*</sup>
                    @if ($errors->has('email'))
                    <span class="help-block">
                        <sup class="surely">{{ $errors->first('email') }}</sup>
                    </span>
                    @endif
                    <br/>
                    <input type="email" name="email" class="" value="{{ old('email') }}" />
                </div><!-- .email -->
                            
                <div class="password">
                    <strong>密码:</strong><sup class="surely">*</sup>
                    @if ($errors->has('password'))
                    <span class="help-block">
                        <sup class="surely">{{ $errors->first('password') }}</span>
                    </span>
                    @endif
                    <br/>
                    <input type="password" name="password" class="" value="" />
                    <a class="forgot" href="{{ url('/password/reset') }}">忘记密码?</a>
                </div><!-- .password -->
                
                <div class="remember">
                    <input class="niceCheck" type="checkbox" name="remember" />
                    <span class="rem">记住密码</span>
                </div><!-- .remember -->
                
                <div class="submit">                                        
                    <input type="submit" value="登录" />
                </div><!-- .submit -->
            </form><!-- .registed -->
                </div><!-- .grid_6 -->
       </div><!-- #content -->
       
      <div class="clear"></div>
    </div><!-- .container_12 -->
</section><!-- #main -->
@endsection
